package com.jt.provider.service;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class ResourceBlockHandler {

    public static String handlerBlock(BlockException e){
        log.debug("block exception {}", "被限流了");
        return "访问太频繁，请稍后再来";
    }
}
